package BookService;

import java.util.List;
import org.apache.ibatis.annotations.Param;

import pojo.Ebook_entry;

public interface Ebook_entryService {
	  //限制查找，根据用户需求查找
	    public List<Ebook_entry> getListBooks(@Param("categoryId") int categoryId,@Param("currentPageNo")int currentPageNo,@Param("pageSize") int pageSize);
	
	  //根据用户查询的分类编号来查询总条数，用于分页
		public int getConut(int categoryId);
		
		// 删除书本
		public boolean delBook(int categoryId);
		
		//增加书本
		public boolean addBook(Ebook_entry ebook);
		
		//根据id查找书本 
		public Ebook_entry searchBook(String id);
		
		//修改书本信息
		public boolean modify(Ebook_entry ebook_entry);
}
